package net.htjs.juc.thread;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ThreadFrameDemo {

    public static void main(String[] args) {
        new Thread(() ->{
            method1(20);
        }).start();
        method1(10);
    }

    private static void method1(int x) {
        int y = x + 1;
        Object m = method2();
        log.info("result:{}", m);
    }

    private static Object method2() {
        Object n = new Object();
        return n;
    }

}
